package com.example.filter.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api")
@RestController
public class TestController {

    @GetMapping("/user/filter")
    public  String hello(){
        return "我被myFilter过滤器控制了";
    }

    @GetMapping("/home/open/info")
    public String getHome(){
        return "欢迎访问首页";
    }
    @GetMapping("/open/unLogin")
    public String getUnLogin(){
        return "登录失效，请重新登录";
    }

}
